package com.qingcheng.rabbitMQ;

import org.springframework.amqp.core.MessageListener;


/**
 * 消息监听类
 */
public class MessageConsumer2 implements MessageListener {

    public void onMessage(org.springframework.amqp.core.Message message) {
        System.out.println("MessageListener2");
        System.out.println(new String(message.getBody()));
    }
}
